package com.cloud.zhcloudserver.controller;

import com.cloud.zhcloudserver.order.Order;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhouzhonghua on 2018/12/29.
 */
@RestController
@RequestMapping("/order")
public class Ordercontroller {

    @RequestMapping("/info")
    public String info(String id){
        Order order = new Order();
        order.setId(id);
        order.setPrice(128);
        System.out.println("==========进入订单接口...");
//        try {
//            Thread.sleep(1500);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        return order.toString();
    }


}
